const mongoose = require('./db')

const Schema = mongoose.Schema;

const UserSchema = new Schema({
    username: String,
    password: String,
    email: String,
    phone: String,
    avatar: String,
    create_time: { type: Date, default: Date.now },
    update_time: { type: Date, default: Date.now }
});

const UserModel = mongoose.model('user', UserSchema);

module.exports = {UserModel};